package com.itheima.edu.info.manager.entry;

import com.itheima.edu.info.manager.controller.OtherStudentController;
import com.itheima.edu.info.manager.controller.StudentController;

import java.util.Scanner;

public class InfoManagerEntry {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while (true){
            System.out.println("请输入您的选择1 学生观理系统 2退出,其他重新进入循环！");
            int choice=sc.nextInt();
            switch (choice){
                case 1:
                    //开启学生管理系统！
                    //StudentController studentController=new StudentController();
                    OtherStudentController otherStudentController=new OtherStudentController();
                    otherStudentController.start();
                    break;
                case 2:
                    //退出当前正在使用的虚拟机！
                    System.exit(0);
                    break;
                default:
                    System.out.println("您输入的有误，请重新数入！");
                    break;
            }
        }

    }

}
